import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
const api = '/sysUserQuery';
export const list = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/list', params });
export const add = (params?: any) =>
  defHttp.post({ url: api + '/add', params });
export const edit = (params?: any) =>
  defHttp.post({ url: api + '/edit', params });
export const setDefault = (id: string) =>
  defHttp.post({ url: api + `/default/${id}` });
